import request from '@/utils/request'

/**获取我的店铺 */
export const myShop = () =>
  request({
    url: '/api/shop/my',
    method: 'get',
  })
/**创建店铺 */
export const shopAdd = ({ name, cover, describe }) =>
  request({
    url: '/api/shop/add',
    method: 'post',
    data: {
      name,
      cover,
      describe,
    },
  })
/**修改店铺 */
export const shopmModify = ({ name, cover, describe }) =>
  request({
    url: '/api/shop/modify',
    method: 'post',
    data: {
      name,
      cover,
      describe,
    },
  })
